// app.slint
import { VerticalBox, Button } from "std-widgets.slint";

export component MainWindow inherits Window {
    title: "DLL Application";
    width: 600px;
    height: 400px;
    in-out property <int> count: 0;
    callback show-message(string);
    VerticalBox {
        alignment: start;
        Text {
            text: "Slint UI from DLL";
            font-size: 24px;
            color: #333;
        }
        HorizontalLayout {
            Text {
                text: "Count: " + count;
                font-size: 18px;
            }
            Button {
                text: "Increment";
                clicked => {
                    count += 1;
                }
            }
        }
        Button {
            text: "Show Message";
            clicked => {
                root.show-message("Hello from Slint!");
            }
        }
    }
}
